// import 'react-app-polyfill/ie11'
// import 'react-app-polyfill/stable'
// import 'babel-polyfill'

import $g from '@/plugins/$g'

import React from 'react'
import ReactDOM from 'react-dom'

import store from '@/redux/store'
import {
  Provider
} from 'react-redux'

import App from './App'
window && (window.$g = $g) // 挂载到 window 上

console.warn('版本号：' + $g.version)

// 获取 url 上 的 参数 然后 子组件 传递
// const param = $g.querystring.parse((window.location.search || '').replace('?', ''))
const param = {}

ReactDOM.render(
  <Provider store = {store}>
    <App {...param} />
  </Provider>,
  document.getElementById('root')
)
